gtk_window_set_interactive_debugging (TRUE);
}
+static void
+activate_print (GSimpleAction *action,
+ GVariant *parameter,
+ gpointer user_data)
+{
+ g_print ("Activate action %s\n", g_action_get_name (G_ACTION (action)));
+}
+
static void
spin_value_changed (GtkAdjustment *adjustment, GtkWidget *label)
{
{ "open", activate_open, NULL, NULL, NULL },
{ "record", activate_record, NULL, NULL, NULL },
{ "lock", activate_lock, NULL, NULL, NULL },
+ { "print", activate_print, NULL, NULL, NULL },
};
struct {
const gchar *action_and_target;
{ "water", NULL, NULL, "true", NULL },
{ "dessert", NULL, "s", "'bars'", NULL },
{ "pay", NULL, "s", NULL, NULL },
- { "print", activate_action, NULL, NULL, NULL },
{ "share", activate_action, NULL, NULL, NULL },
{ "labels", activate_action, NULL, NULL, NULL },
{ "new", activate_action, NULL, NULL, NULL },
<child>
<object class="GtkButton" id="print_button">
<property name="label">Print</property>
- <property name="action-name">app.print</property>
+ <property name="action-name">win.print</property>
</object>
</child>
</object>
</object>
</property>
<property name="iconic">1</property>
- <property name="action-name">app.print</property>
+ <property name="action-name">win.print</property>
<property name="hexpand">1</property>
<property name="halign">center</property>
<style>
<attribute name="display-hint">circular-buttons</attribute>
<item>
<attribute name="verb-icon">printer-symbolic</attribute>
- <attribute name="action">app.print</attribute>
+ <attribute name="action">win.print</attribute>
</item>
<item>
<attribute name="verb-icon">emblem-shared-symbolic</attribute>